#define _CRT_SECURE_NO_WARNINGS
#include"Heap.h"

int main()
{
	HP hp;
	HeapInit(&hp);
	int a[] = { 65,100,70,32,50,60 };//{100,65,70,32,50,60}
	for (int i = 0; i < sizeof(a) / sizeof(int); ++i)
	{
		HeapCreate(&hp, a[i]);
		HpPush(&hp, a[i]);
	}
	while (!HpEmpty(&hp))
	{
		int top = HpTop(&hp);
		printf("%d\n", top);
		HpPop(&hp);
	}
	return 0;
}